package com.yunao.web.form;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

@Data
public class AlarmForm {

    @NotBlank(message = "请选择专题")
    private String subjectId;

    //1弹窗，2邮件，3微信
    @NotBlank(message = "预警推送方式不能为空")
    private String alarmMethod;

//    @NotEmpty(message = "预警推送地址不能为空")
    @Email
    private String alarmAddrs;

    //判断是否是自定义或者已设置好的时间
    private String timeRadio;

    //已设置好的时间
    private String alarmPeriod;

    //自定义开始时间
    private String begin;

    //自定义结束时间
    private String end;



}
